package zh.demo.datasource;

/**
 * Created by zhangheng on 2017/10/30.
 */
public enum DynamicDataSourceGlobal {
    read("read", "从库"),
    write("write", "主库");

    private String type;

    private String name;

    DynamicDataSourceGlobal(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }
    //READ, WRITE;
}
